﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="SearchMobilePhonesPage.aspx.cs" Inherits="automobili_gui.Public.SearchMobilePhonesPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Panel ID="Panel1" runat="server">
        <asp:Label ID="Label1" runat="server" Text="Manufacturer"></asp:Label>
        <asp:TextBox ID="TextBoxManufct" runat="server"></asp:TextBox>
        <br />
        <asp:Label ID="Label2" runat="server" Text="Model"></asp:Label>
        <asp:TextBox ID="TextBoxModel" runat="server"></asp:TextBox>
        <br />
        <asp:DropDownList ID="DropDownList1" runat="server" 
            DataSourceID="ObjectDataSource1">
        </asp:DropDownList>
        <br />
        <asp:Button ID="ButtonSearch" runat="server" Text="Search" 
            onclick="ButtonSearch_Click" />
    </asp:Panel>
    <asp:Panel ID="Panel2" runat="server" Direction="LeftToRight" 
        ScrollBars="Vertical">
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
            AutoGenerateColumns="True">
        </asp:GridView>
        <asp:ObjectDataSource ID="mobileDataSource" runat="server" 
            SelectMethod="searchCellPhones" TypeName="automobili_data.AutomobiliDataManager">
            <SelectParameters>
                <asp:ControlParameter ControlID="TextBoxManufct" Name="manufacturer" 
                    PropertyName="Text" Type="String" />
                <asp:ControlParameter ControlID="TextBoxModel" Name="model" PropertyName="Text" 
                    Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
    </asp:Panel>
</asp:Content>
